#ifndef BSP_AFDD_H
#define BSP_AFDD_H

#include "main.h"

#define RELAY_ON (PAout(8) = 1)
#define RELAY_OFF (PAout(8) = 0)
#define THYRISTOR_ALLON (PBout(12)=PBout(13)=PBout(14)=PBout(15) = 1)
#define THYRISTOR_ALLOFF (PBout(12)=PBout(13)=PBout(14)=PBout(15) = 0)

void BSP_AFDDIOInit(void);
void thyristor_openOne(void);
void AFDD_Start(uint8_t num);

#endif
